﻿<UserControl x:Class="SverigesRadio.SverigesRadioApp.WindowsPhoneApplication.Controls.ChannelInformationControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">

    <Grid x:Name="LayoutRoot">

        <StackPanel Orientation="Vertical">
            <StackPanel Orientation="Horizontal" VerticalAlignment="Top" >
                <Rectangle Height="100" Width="50" Fill="{Binding SelectedChannel.Channel.FormattedColour}" />
                <StackPanel Margin="9 0 0 0" Width="Auto" Height="78">

                    <TextBlock Text="{Binding SelectedChannel.Channel.Name}" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}"/>
                    <TextBlock Text="{Binding SelectedChannel.Channel.TagLine}" TextWrapping="Wrap" Margin="12,-6,12,0"  Style="{StaticResource PhoneTextSubtleStyle}"/>

                </StackPanel>
            </StackPanel>

            <TextBlock Text="Just nu" Margin="0 5 0 0"/>
            <TextBlock Text="{Binding SelectedChannel.CurrentProgramTitle}" 
                               Style="{StaticResource PhoneTextSubtleStyle}"
                               TextWrapping="Wrap" Margin="5 0 0 0"/>

            <TextBlock Text="{Binding SelectedChannel.CurrentProgramInfo}"
                               Style="{StaticResource PhoneTextSubtleStyle}"
                               Visibility="{Binding SelectedChannel.CurrentProgramInfoVisibility}"
                               TextWrapping="Wrap" />

            <TextBlock Text="Nästa program" Margin="0 20 0 0"/>
            <TextBlock Text="{Binding SelectedChannel.NextProgramTitle}" 
                               Style="{StaticResource PhoneTextSubtleStyle}"
                               TextWrapping="Wrap" />
            <TextBlock Text="{Binding SelectedChannel.NextProgramStartTime}" 
                               Style="{StaticResource PhoneTextSubtleStyle}"
                               TextWrapping="Wrap" />

        </StackPanel>

    </Grid>
</UserControl>
